package org.sucri.floxs.ext.form;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Aug 19, 2007
 * Time: 5:06:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class FormButton
{
  private String mName;  
  public FormButton(String s) { super(); mName = s; }

  /*

form_employee.addButton('Save', function(){
	if (form_employee.isValid()) {
		form_employee.submit({
			params:{
				action:'submit',
				id:employee_data.getAt(0).data.id
			},
			waitMsg:'Saving...'
		});
	}else{
		Ext.MessageBox.alert('Errors', 'Please fix the errors noted.');
	}
}, form_employee);

form_employee.render('employee-form');  
   */
  public String getName() { return mName; }
}
